package com.wanshi.service.impl;

import com.wanshi.entity.Products;
import com.wanshi.mapper.ProductsMapper;
import com.wanshi.service.IProductsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 顽石教育-www.wanshi.com
 * @since 2021-12-22
 */
@Service
public class ProductsServiceImpl extends ServiceImpl<ProductsMapper, Products> implements IProductsService {

    @Autowired
    private ProductsMapper productsMapper;

    @Override
    public List<Products> findProdsAndNumByOrderId(String orderid) {
        return productsMapper.findProdsAndNumByOrderId(orderid);
    }
}
